home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / visulztn / saoimage / saoimage.lha / btnlib / makefile < prev    next >
Makefile  |  1991-05-23  |  1KB  |  48 lines

  1. # makefile for SAOimage btnlib
  2. #
  3. # This version is a generic makefile, as opposed to the several editions for
  4. # various machines that reside in the parent directory.  This file is intended
  5. # to be driven from one of these parent makefiles which have knowledge about
  6. # machine dependencies.  On many systems, however, this file can be run as a
  7. # standalone makefile, i.e., if one were to type "make" in this directory,
  8. # the library would build.  It is preferable to build btnlib as part of the
  9. # make procedure in the parent SAOimage directory.
  10.  
  11. CFLAGS  = -c -O
  12.  
  13. LINT   = lint
  14. RANLIB = ranlib
  15. RM     = rm -f
  16.  
  17. .c.o:
  18.     $(CC) $(CFLAGS) $*.c
  19.  
  20. SRCS =    buttons.h    borders.h \
  21.     attach.c    draw.c        event.c        border.c \
  22.     create.c    label.c        image.c        mount.c \
  23.     press.c        remote.c    resize.c    util.c
  24.  
  25. OBJS =    attach.o    draw.o        event.o        border.o \
  26.     create.o    label.o        image.o        mount.o \
  27.     press.o        remote.o    resize.o    util.o
  28.  
  29. LIB    = libbtn.a
  30. XLIBH    = /usr/include/X11/Xlib.h
  31.  
  32. all:    $(LIB)
  33.  
  34. $(OBJS):  buttons.h $(XLIBH)
  35.  
  36. create.o : borders.h motf.h
  37.  
  38. $(LIB): $(OBJS)
  39.     ar cr $(LIB) $(OBJS)
  40.     $(RANLIB) $(LIB) > /dev/null
  41.     $(RM) *.o
  42.  
  43. lint:
  44.     $(LINT) *.c
  45.  
  46. clean:
  47.     $(RM) a.out core *.bak *~ \#* *.o
  48.